How to retrieve file path for IVersionable from IChangeSet with IBaselineSet, Workspace given?
Given:
ISnapshotHandle snapshot1, snapshot2
temp Workspace created from that: IWorkspaceConnection tempWSConnection = SCMPlatform .getWorkspaceManager(teamRepository).createWorkspace(currentUser,name, comment, snapshot1, null);
List <IChangeSetHandle> changeSetList retrieved from:
IWorkspaceManager workspaceManager = SCMPlatform.getWorkspaceManager(teamRepository);
IChangeHistorySyncReport changeSync = workspaceManager.compareBaselineSets(snapshot1, snapshot2, null, null);
changeSetList = changeSync.outgoingChangeSets();
Looking for:
the easiest way to resolve the file name of the IVersionables in each ChangeSet of ChangeSetList in the context of the Workspace
Currently I iterate over the IVersionableHandles and do:
IFileItem file = (IFileItem) workspace.configuration(component).fetchCompleteItem(versionableHandle, monitor);
String fileName = file.getName();
Notice that for this I need the component for the ChangeSet in that particular workspace. Can I get this information in the case above where I retrieve Change Sets as a diff between two snapshots (compareBaselineSets) ?
Or is there a way to resolve the file name directly just by knowing workspace, change set, snapshot?
ISnapshotHandle snapshot1, snapshot2
temp Workspace created from that: IWorkspaceConnection tempWSConnection = SCMPlatform .getWorkspaceManager(teamRepository).createWorkspace(currentUser,name, comment, snapshot1, null);
List <IChangeSetHandle> changeSetList retrieved from:
IWorkspaceManager workspaceManager = SCMPlatform.getWorkspaceManager(teamRepository);
IChangeHistorySyncReport changeSync = workspaceManager.compareBaselineSets(snapshot1, snapshot2, null, null);
changeSetList = changeSync.outgoingChangeSets();
Looking for:
the easiest way to resolve the file name of the IVersionables in each ChangeSet of ChangeSetList in the context of the Workspace
Currently I iterate over the IVersionableHandles and do:
IFileItem file = (IFileItem) workspace.configuration(component).fetchCompleteItem(versionableHandle, monitor);
String fileName = file.getName();
Notice that for this I need the component for the ChangeSet in that particular workspace. Can I get this information in the case above where I retrieve Change Sets as a diff between two snapshots (compareBaselineSets) ?
Or is there a way to resolve the file name directly just by knowing workspace, change set, snapshot?